//固有路由
const routes = [
  {
    path: "/",
    redirect: "/redirectPage",
  },
  {
    path: "/login",
    meta: { title: "登录", needLogin: false },
    component: () => import("@/views/login/index.vue"),
  },
  {
    path: "/redirectPage",
    meta: { title: "登录" },
    component: () => import("@/views/redirectPage/index.vue"),
  },

  {
    path: "/test",
    component: () => import("@/views/test/index.vue"),
    meta: {
      title: "test",
      needLogin: false,
    },
  },
  {
    path: "/404",
    component: () => import("@/views/404/index.vue"),
    meta: {
      title: "404",
      needLogin: false,
    },
  },
];
export default routes;

//layout路由
export let layoutRoute = {
  path: "/layout",
  name: "/layout",
  component: () => import("@/views/layout/index.vue"),
  meta: {
    title: "layout",
    keepAlive: true,
  },
};
